package com.luojing.myThread.countdownlatch;

import java.util.concurrent.CountDownLatch;

/**
 * @author luojing
 * @create 2018/08/25 上午9:21
 **/
public class DoSomeThing {

  public static void main(String[] args) throws InterruptedException {
    CountDownLatch countDownLatch = new CountDownLatch(3);
    Worker worker1 = new Worker("wk1",countDownLatch,1L);
    Worker worker2 = new Worker("wk2",countDownLatch,4000L);
    Worker worker3 = new Worker("wk3",countDownLatch,5000L);

    new Thread(worker1).start();
    new Thread(worker2).start();
    new Thread(worker3).start();
    countDownLatch.await();
    System.out.println("game voer");
  }

}
